package com.bckj.fastboot.security.component;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.security.web.util.matcher.RequestMatcher;

import java.util.Objects;

public class InnerRequestMatcher implements RequestMatcher {

    @Override
    public boolean matches(HttpServletRequest request) {
        return Objects.equals(request.getHeader("xyz"), "feign");
    }
}
